
import { request1, request2 } from '@/utils/request'
//  登录获取验证码
export const loginCodeAPI = (data) => {
  return request2({
    url: '/au/code',
    method: 'post',
    data
  })
}
//  登录
export const loginAPI = (data) => {
  return request2({
    url: '/au/login',
    method: 'post',
    data
  })
}

//  获取城市
export const cityListAPI = () => {
  return request1({
    url: 'interview/filters'
  })
}

//  拿到城市 职位id 筛选试题
export const interviewListAPI = (params) => {
  return request1({
    url: '/interview/questions',
    params
  })
}
//  面试题详情
export const questionsDetailAPI = (id) => {
  return request1({
    url: `/questions/${id}`
  })
}
//  评论试题
export const feedbackAPI = (data) => {
  return request1({
    url: '/questions/comment',
    method: 'post',
    data
  })
}
//  收藏试题
export const collectAPI = (data) => {
  return request1({
    url: '/questions/collect',
    method: 'post',
    data
  })
}
//  提交试题
export const submitQuesAPI = (data) => {
  return request1({
    url: '/questions/submit',
    method: 'post',
    data
  })
}

//  面试题详情
